package com.allwees.bs.module.oms.service.impl;

import com.allwees.bs.module.oms.service.OmsOrderBatchService;
import com.allwees.core.common.util.DateUtil;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * 订单批次
 *
 * @author mouhn
 * @since 2019-12-31 10:48
 */
@Service
public class OmsOrderBatchServiceImpl implements OmsOrderBatchService {

    private static final String prefix = "OB";

    @Override
    public String findCurrentBatchNo() {
        return prefix + DateUtil.formatDate(new Date()).replace("-", "");
    }
}
